<% String action = "palc"; %>
<%@ include file="header.inc" %>

<table border="0" cellspacing="0" cellpadding="0"><tr><td valign="top" width="320">

<%@ include file="product.inc" %>

</td><td valign="top" style="border-left:1px solid silver; padding-left:10px">
<form action="<%=contextPath%>/palcOrder.do" method="post">
<% if(palc!=null && !palce.isEmpty()) { %>
<input type="button" value="Contenidos" onclick="document.location.href='<%=contextPath%>/palc.do'">
<input type="submit" name="submit" value="Ordenar &gt;">
<input type="button" value="WSDL" onclick="getElementById('wsdlInput').style.visibility = 'visible'; return false;" size="1">
<input type="text" id="wsdlInput" style="visibility:hidden" name="wsdl" value="http://localhost:8080/axis/services/PALC" size="1">
<br>
<br>
<table border="0" cellspacing="0" cellpadding="2">
<tr>
<th align="left" width="200">Producto</th>
<th align="center" width="50">Cant.</th>
<th align="right" width="50">Ofad</th>
<th align="right" width="50">7d.</th>
<th align="right" width="50">Palc</th>
<th align="right" width="50">P. p.</th>
<th align="right" width="50">Stock</th>
</tr>
<% for(int i=0; i<palce.size(); i++){ com.zara.store.client.clientmodel.BasketLine bl = (com.zara.store.client.clientmodel.BasketLine)palce.get(i); %>

<tr>
<td><%=bl.getProductName()%> (<%=bl.getProductBarcode()%>)</td>
<td align="center"><%=bl.getAmount()%></td>
<td align="right"><%if(bl.isAvailableInOfad()){%>Si<%}else{%>No<%}%></td>
<td align="right"><%=bl.getAmountSoldLastWeek()%></td>
<td align="right"><%=bl.getAmountPendingOnLastPalc()%></td>
<td align="right"><%=bl.getOrderStock()%></td>
<td align="right"><%=bl.getStock()%></td>
</tr>

<% } %>
</table>
</form>
<% } %>
</td></tr></table>

<%--
<html:form action="product.do" focus="name" >
<html:text property="barcode" size="10" maxlength="10" styleClass="barcode"/>
<html:submit value="search" styleClass="barcode"></html:submit>
</html:form>
--%>

<%@ include file="footer.inc" %>